<!DOCTYPE html>
<html lang="en">
<head>
    <meta >
    <title>Title</title>
</head>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/bootstrap-table.css">
<body style="background-color: #f2f9fd;" >
    <div class="container" style="margin-top: 20px">
        <div class="row">
            <div class="col-md-1 col-lg-2">
                <input id="ename" type="text" class="form-control" placeholder="请输入查询的名字">
            </div>
            <div class="col-md-2 col-lg-2">
                <select class="form-control" >
                    <option value="-1">不限性別</option>
                    <option value="1">男</option>
                    <option value="2">女</option>
                </select>
            </div>
            <div class="col-md-3 col-lg-2">
                <input type="date"  class="form-control" id="time1">
            </div>
            <div class="col-md-3 col-lg-2">
                <input type="date"  class="form-control">
            </div>
            <div class="col-md-2 col-lg-2">
                <select class="form-control" id="">
                    <option value="-1">不限部门</option>
                    <option value="1">开发部</option>
                    <option value="2">销售部</option>
                    <option value="3">人事部</option>
                </select>
            </div>
            <div class="col-md-1 col-lg-1">
                <button type="button" class="btn btn-primary" id="submit_select">查询</button>
            </div>
        </div>
    </div>

    <div class="container" style="margin-top: 30px;margin-right: 90px;">
        <div style="float: right;">
            <button type="button" class="btn btn-primary btn-sm ">添加</button>
        </div>
        <table id="tableInfo">

        </table>
    </div>
<!--    模态框-->
<div class="modal" id="modal">
    <div class="modal-dialog">
        <div class="modal-content">
<!--            头部-->
<div class="modal-header">
<h4  class="modal-title">修改员工</h4>
    <button class="close" data-dismiss="modal">×</button>
</div>
<!--            主题-->
            <div class="modal-body">
<form>
    <input type="hidden" id="bh">
    <div class="form-group">
        <label>姓名:</label>
        <input type="text" class="form-control" id="name" >
    </div>
    <div class="form-group">
        <label>工作类型:</label>
        <input type="text" class="form-control" id="lx">
    </div>
    <div class="form-group">
        <label>薪资:</label>
        <input type="text" class="form-control" id="xz">
    </div>
    <div class="form-group">
        <label>入职时间:</label>
        <input type="date" class="form-control" id="rzsj">
    </div>
    <div class="form-group">
        <label>部门:</label>
        <select class="form-control" id="bm">
            <option value="开发部">开发部</option>
            <option value="信息部">信息部</option>
            <option value="人事部">人事部</option>
            <option value="就业部">就业部</option>
            <option value="财务部">财务部</option>
        </select>
    </div>
    <div class="form-group" style="text-align: center">
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="xiugai()">确定</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
    </div>
</form>
            </div>
        </div>
    </div>
</div>
</body>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-table.js"></script>
<script src="js/infotable.js"></script>
<script src="js/bootstrap-table-zh-CN.min.js"></script>
<script>
function xiugai() {
    var name=document.getElementById("bm").value;
    var ename=document.getElementById("name").value;
    var job=document.getElementById("lx").value;
    var sal=document.getElementById("xz").value;
    var hiredate=document.getElementById("rzsj").value;
    var id=document.getElementById("bh").value;
    var str="deptname="+name+"&ename="+ename+"&job="+job+"&hiredate="+hiredate+"&sal="+sal+"&empno="+id;
</script>
</html>